package com.dq.controller.in.orders;

import com.dq.domain.orders.ShortageOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author cf
 */
@Data
@ApiModel(value = "缺货单生成接参")
public class ShortageOrderSave implements Serializable {
    @ApiModelProperty("缺货单类型（userOrder: 销售单对应缺货单； orgOrder: 采购单对应缺货单；all：所有类型）")
    public ShortageOrder.ShortageType shortageType;

    @ApiModelProperty("采购单/销售单Id")
    public Long ordersId;
    @ApiModelProperty("缺货单详情信息")
    public List<ShortageOrderInfo> returnInfoList;

    @Data
    public static class ShortageOrderInfo {
        @ApiModelProperty("商品ID")
        public Long productId;
        @ApiModelProperty("商品数量")
        public Long returnCount;
    }
}
